<template>
  <div class="content">
    <!-- 左边 -->
    <div class="words">
      <div class="title">Our Services</div>
      <div class="word">
        <span>As a team of experienced Pet owners and lovers.</span>
        <br />
        <span>we readlly get know you and your pet.</span>
      </div>
      <div class="todos">
        <ul>
          <li v-for="(item, index) in todoList" :key="index">
            <div class="img">
              <img src="../../static/√.png" alt="" />
            </div>
            <div class="todo">{{ item.todo }}</div>
          </li>
        </ul>
      </div>
    </div>
    <!-- 右边 -->
    <div class="cat">
      <div class="c_bg">
        <img src="../../static/mao5-removebg-preview.png" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      todoList: [
        { todo: "Treatment for heart related diseases." },
        { todo: "Madical treatment for disorders." },
        { todo: "Broken bone treatment." },
      ],
    };
  },
};
</script>

<style scoped>
.content {
  margin: 100px auto;
  width: 80%;
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  flex-wrap: wrap;
}
.words {
  margin: auto;
}
.title {
  font-size: 62px;
  color: #000958;
  padding: 10px;
}
.word {
  font-size: 16px;
  color: #87879b;
  padding: 20px;
}
.todos {
  padding: 8px;
}
.todos .img {
  border-radius: 100px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff1e6;
}
.todos img {
  vertical-align: middle;
  width: 10px;
  height: 10px;
}
.todos ul {
  padding: 0;
  margin: 0;
}
.todos li {
  padding: 8px;
  list-style: none;
}
.todo {
  margin-left: 10px;
  padding: 5px;
  display: inline-block;
}
/* 右边 */
.cat {
  padding: 20px;
}
.c_bg {
  background-color: #fac3d5;
  border: 5px solid #fff;
  border-radius: 40%;
}
.cat img {
  /* width: 500px; */
}
@media screen and (min-width: 320px) and (max-width: 768px) {
  .cat img {
    width: 400px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1440px) {
  .title {
    font-size: 60px;
  }
  .cat img {
    width: 450px;
  }
}
/* 台式电脑显示器屏幕字体大小 */
@media screen and (min-width: 1440px) {
  .title {
    font-size: 68px;
  }
}
</style>